package com.wy.dao;

import com.wy.model.sys.FeeRuleDimension;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

import java.util.List;

@Mapper
public interface FeeRuleDimensionMapper {
    int deleteByPrimaryKey(Integer id);

    int insert(FeeRuleDimension record);

    int insertSelective(FeeRuleDimension record);

    FeeRuleDimension selectByPrimaryKey(Integer id);

    int updateByPrimaryKeySelective(FeeRuleDimension record);

    int updateByPrimaryKey(FeeRuleDimension record);

    void insertBatch(List<FeeRuleDimension> list);

    List<FeeRuleDimension> getFeeRuleDimensionByFeeId(@Param("feeId")Integer feeId);
    List<FeeRuleDimension> getFeeRuleDimensionByCondition(@Param("feeId")Integer feeId,@Param("condition1")String condition1,@Param("floor")String floor);

    /**
     * 根据费ID删除所有规则记录
     * @param feeId
     */
    void deleteByFeeId(@Param("feeId")Integer feeId);

    void deleteByGroupId(@Param("groupId")List<String> groupId);
}